# -*- coding: utf-8 -*- 
# @project : 《剑指offer》
# @Author : created by bensonrachel on 2021/6/13
# @File : 打印从1到最大的n位数.py
class Solution:
    def printNumbers(self, n: int) -> List[int]:#也可以用10的n次方
        List = []
        str = ""
        for _ in range(n):
            str=str+"9"
        for i in range(1,int(str)+1):
            List.append(i)
        return List